package com.OrderingSystem.service;

import com.OrderingSystem.dto.OrderDTO;
import com.OrderingSystem.dto.OrderDetailsDTO;
import com.OrderingSystem.pojo.OrderMaster;
import com.OrderingSystem.utils.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;


public interface IOrderMasterService extends IService<OrderMaster> {

    OrderDTO createOrder(OrderDTO orderDTO);

    List<OrderMaster> selectAllOrderMaster(Integer pageNum, Integer pageSize, OrderMaster orderMaster);

    List<OrderDTO> findList(String openid);

    OrderDetailsDTO findOrderInfo(String openid, String orderId);

    void cancelOrder(String openid, String orderId);

    Integer getTodayOrderCount();

    BigDecimal getTotalOrderAmount();
}
